#!/usr/bin/expect

set file_name [lindex $argv 0]

# upload file to server
spawn scp $file_name knight@192.168.168.170:/home/knight/share/[lindex $argv 1]
expect "*password"
send "sivision129\r"

interact
